FROM liangjie/spark2hp27:latest
MAINTAINER liangjie
RUN yum install -y java-1.8.0-openjdk  java-1.8.0-openjdk-devel
#jdk版本根据安装yum安装的版本进行链接,必须保证先软链接再删除，不然default的软链接会消失
RUN cd /usr/java && rm -f latest && rm -rf jdk1.7.0_71 && ln -s /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-3.b14.el6_9.x86_64 latest
